import { optimizer } from '@electron-toolkit/utils'
import { app } from 'electron'
import './ipcMain'
import conf from './setConf'
import './windows'
app.whenReady().then(() => {
  conf.registerRendererListener()
  app.on('browser-window-created', (_, window) => {
    optimizer.watchWindowShortcuts(window)
  })
})
app.on('window-all-closed', async () => {
  if (process.platform !== 'darwin') {
    app.quit()
  }
})
